﻿using System;
using System.Drawing;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.IO;
using System.Web.Security;
using webapp4U;
using webapp4U.BOL;

namespace webapp4U.UI
{
    [ParseChildren(true)]
    public class ddlCountry : DropDownList
    {
        public ddlCountry()
        {
            List<Country> obj = Country.GetAllCountry();
            this.DataSource = obj;
            this.DataValueField = "CountryID";
            this.DataTextField = "CountryName";
            this.DataBind();

            this.Items.Insert(0, new ListItem(ResourceManager.GetString("PleaseSelect"), ""));

        }
    }
}
